import request from '@/utils/request'
//修改密码
export function updatePassword(oldPassword, newPassword) {
  const data = {
    oldPassword,
    newPassword
  }
  return request({
    url: 'settings/updatePassword',
    method: 'post',
    data
  })
}

//获取基本信息
export function getWebSite() {
  return request({
    url: 'settings/WebSiteInfo',
    method: 'get'
  })
}

//修改基本信息
export function updateWebSite(info) {
  return request({
    url: 'settings/updateWebSite',
    data: info,
    method: 'post'
  })
}

//获取管理员列表
export function getAdminsList() {
  return request({
    url: 'settings/getAdminList',
    method: 'get'
  })
}
